Skip to content

goto-def should treat constructor functions as functions #33109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 27, 2019

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Aug 27, 2019

Fallout from constructor-functions-as-classes. constructor functions are marked with SymbolFlags.Class, but should still be treated like functions for goto-def.

Fixes #33107

@sandersn sandersn changed the title goto-def needs special handling for constructor functions goto-def should treat constructor functions as functions Aug 27, 2019
@sandersn sandersn merged commit 13e1ccd into master Aug 27, 2019
timsuchanek pushed a commit to timsuchanek/TypeScript that referenced this pull request Sep 11, 2019
…3109)

* goto-def:special handling for constructor functions

* Just treat constructor functions like functions

* Even simpler fallback
@sandersn sandersn deleted the fix-gotodef-constructor-functions branch July 26, 2022 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

goto-def no longer recognises constructor functions as classlike
3 participants